<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>会议图标</title>
    <?php require 'templates/common/head.html'; ?>
</head>
<body>

<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center">
            <h3 class="panel-title"><?php if($_GET['id']){ echo "修改";}else{ echo "添加";}?>会议图标</h3>

        </div>
        <div class="panel-body" style="font-size: 18px;">
            <a href="<?=$ico_list_url?>" type="button" class="btn btn-primary">ico列表</a>
             </div>

            <div style="padding: 30px 30px 10px;">
                <form action="" method="post" enctype="multipart/form-data" class="bs-example bs-example-form" role="form">
                    <input type="hidden" name="ico1" value="<?=@$ico_detail->data['ico1']?>">
                    <input type="hidden" name="ico2" value="<?=@$ico_detail->data['ico2']?>">
                    <input type="hidden" name="ico3" value="<?=@$ico_detail->data['ico3']?>">
                    <input  type="hidden" name="ico4" value="<?=@$ico_detail->data['ico4']?>">
                    <input type="hidden" name="other" value="<?=@$ico_detail->data['other']?>">
                    <?php if($_GET['id']): ?>
                    <img src="<?=G_SITE_BASE?>/<?=@$ico_detail->data['ico1']?>"/>
                    <img src="<?=G_SITE_BASE?>/<?=@$ico_detail->data['ico2']?>"/>
                    <img src="<?=G_SITE_BASE?>/<?=@$ico_detail->data['ico3']?>"/>
                    <img src="<?=G_SITE_BASE?>/<?=@$ico_detail->data['ico4']?>"/>
                    <img src="<?=G_SITE_BASE?>/<?=@$ico_detail->data['other']?>"/>
                    <?php endif;?>
                    <div class="input-group">
                        <span class="input-group-addon">主色调</span>
                        <input type="text" class="form-control" value="<?php if($_GET['id']){ echo $ico_detail->data['color'];};?>" placeholder="请输入主色调" name="color">
                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">讨论组</span>
                        <div class="form-control">
                            <input type="file" class="" name="pic[]">
                        </div>

                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">会议简介</span>
                        <input type="file" class="form-control" name="pic[]">
                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">会议安排</span>
                        <input type="file" class="form-control" name="pic[]">
                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">会议视频</span>
                        <input type="file" class="form-control" name="pic[]">
                    </div>
                    <br>

                    <div class="input-group">
                        <span class="input-group-addon">其他</span>
                        <input type="file" class="form-control" name="pic[]">
                    </div>
                    <br>

                    <div class="input-group">
                        <input type="submit" class="form-control btn btn-primary" value="提交">
                    </div>
                </form>
            </div>
    </div>
</div>
<?php require 'templates/common/foot.html'; ?>
</body>
</html>